#include <Engine/StdAfx.h>
#include <Engine/SceneGraph/SpatialObject.h>
#include <Engine/IScene.h>

using namespace fastbird;

//----------------------------------------------------------------------------
SpatialObject::SpatialObject()
{
}

//----------------------------------------------------------------------------
SpatialObject::~SpatialObject()
{
	if (mScene)
	{
		mScene->DetachObject(this);
		mScene = 0;
	}
}
